package com.jt.service;

import org.springframework.stereotype.Service;

@Service
//被代理者
public class UserServiceImpl implements UserService{
    @Override
    public void addUser() {
        System.out.println("新增用户");
    }

    @Override
    public void delUser() {
        System.out.println("删除用户");
    }

/*    @Override
    public void addUser() {
        try{
        System.out.println("开启数据库事务");
        System.out.println("新增用户");
        System.out.println("提交数据库事务");
        }catch (Exception e){
            System.out.println("事务回滚");
        }
    }*/
}
